package com.thread.consumeandproduct;

import java.io.Serializable;

public class ProductJetBean implements Serializable {
    private long timeOut = 5000;
    private String content;
    private int repeatCount = 1;
    private boolean isValid = true;
    private OnJetFinishListener onJetFinishListener;

    public ProductJetBean(String content) {
        this.content = content;
    }

    public OnJetFinishListener getOnJetFinishListener() {
        return onJetFinishListener;
    }

    public void setOnJetFinishListener(OnJetFinishListener onJetFinishListener) {
        this.onJetFinishListener = onJetFinishListener;
    }

    public void setValid(boolean valid) {
        isValid = valid;
    }

    public boolean isValid() {
        return isValid;
    }

    public int getRepeatCount() {
        return repeatCount;
    }

    public void setRepeatCount(int repeatCount) {
        if (repeatCount <= 0) {
            repeatCount = 1;
        }
        this.repeatCount = repeatCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(long timeOut) {
        this.timeOut = timeOut;
    }


    @Override
    public String toString() {
        return "ProductBean{" +
                ", timeOut=" + timeOut +
                ", content='" + content + '\'' +
                '}';
    }
}
